﻿#include "MainWindow.h"
#include "ui_MainWindow.h"
#include "TrChartKGrids.h"
#include "TrChartPeriodBar.h"
#include "TrChartMainArea.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setMinimumSize(1440,800);

    TrChartKGrids *pGrids = new TrChartKGrids(this);
    pGrids->setCode("ss2405", "不锈钢", 5.0, 5);
    ui->centralwidget->setLayout(new QVBoxLayout);
    ui->centralwidget->layout()->addWidget(pGrids);
    ui->centralwidget->layout()->setMargin(0);

}

MainWindow::~MainWindow()
{
    delete ui;
}


